package com.situ.crm.service;

import com.situ.crm.util.Result;
import com.situ.crm.pojo.entity.User;

import javax.servlet.http.HttpSession;
import java.util.List;

public interface IUserService {

	Result selectByPage(Integer page, Integer limit, User user);

	boolean deleteById(Integer id);

	boolean deleteAll(String ids);

	boolean add(User user, String roles);

	User selectByPrimaryKey(Integer userId);

	Result selectUserAndRoles(Integer userId);

	boolean update(User user, String roles);

	Result login(String name, String password, HttpSession session);

	List<User> selectXiaoShouUser();
}
